﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hospital_registration_system.Entity
{
    /// <summary>
    /// 预约挂号表实体类
    /// </summary>
    public class Appointment
    {
        private int id; //id号
        private int patient_id;// 病人Id
        private int illness_id; //疾病id
        private int department_id;//科室id
        private int doctor_id;//医生id
        private int clinic_time_id;//就诊时间id
        private String CREATED_BY; //创建人
        private DateTime CREATED_TIME; //创建时间
        private String UPDATED_BY; //更新人
        private DateTime UPDATED_TIME; //更新时间
        private int state; //状态

        public Appointment() 
        {
        }

        public Appointment(int id, int patient_id, int illness_id, int department_id, int doctor_id, int clinic_time_id, string cREATED_BY, DateTime cREATED_TIME, string uPDATED_BY, DateTime uPDATED_TIME, int state)
        {
            this.id = id;
            this.patient_id = patient_id;
            this.illness_id = illness_id;
            this.department_id = department_id;
            this.doctor_id = doctor_id;
            this.clinic_time_id = clinic_time_id;
            CREATED_BY = cREATED_BY;
            CREATED_TIME = cREATED_TIME;
            UPDATED_BY = uPDATED_BY;
            UPDATED_TIME = uPDATED_TIME;
            this.state = state;
  
        }

        public int Id { get => id; set => id = value; }
        public int Patient_id { get => patient_id; set => patient_id = value; }
        public int Illness_id { get => illness_id; set => illness_id = value; }
        public int Department_id { get => department_id; set => department_id = value; }
        public int Doctor_id { get => doctor_id; set => doctor_id = value; }
        public string CREATED_BY1 { get => CREATED_BY; set => CREATED_BY = value; }
        public DateTime CREATED_TIME1 { get => CREATED_TIME; set => CREATED_TIME = value; }
        public string UPDATED_BY1 { get => UPDATED_BY; set => UPDATED_BY = value; }
        public DateTime UPDATED_TIME1 { get => UPDATED_TIME; set => UPDATED_TIME = value; }
        public int State { get => state; set => state = value; }
        public int Clinic_time_id { get => clinic_time_id; set => clinic_time_id = value; }
    }

}
